import Components  from './components'
import Directives from './derectives'
import Prototypes from './prototypes'
function install(_Vue){
  // 安装Components
  let componentPerfix = 'qyb'
  Object.keys(Components).forEach(item=>{
    let name = Components[item].name;
    console.log(Components[item]);
    _Vue.component(name?name:componentPerfix+item,Components[item])
  })
  // 安装directive
  Object.keys(Directives).forEach(item => {
    let directive = Directives[item];
    let name =directive.name
    _Vue.directive(name?name:'s'+item,directive)
  });
  Prototypes.forEach(item=>{
    item(_Vue)
  })
};
export default install
